package com.hxzy.mapper;

import com.hxzy.entity.Area;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * AreaMapper继承基类
 */
@Mapper
@Repository
public interface AreaMapper extends MyBatisBaseDao<Area, Long> {

    /**
     * 根据parentID查询区域
     * @param parentId
     * @return
     */
    List<Area> findByParentId(Long parentId);

}